package com.prinxchengshan.reportbase.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.stereotype.Component;

import java.math.BigDecimal;
import java.util.Date;

@Component
@AllArgsConstructor
@NoArgsConstructor
@Data
@ToString
public class SapCustomerCredit {
    // 公司
    private String bukrs;
    // 信用金额
    private String zxyzh;
    // 还款流水号
    private String zhklsh;
    // 还款单号
    private String zhkdh;
    // 客户编码
    private String kunnr;
    //
    private String bu_sort2;
    // 客户名称
    private String name1;
    // 信用类型
    private String zxylx;
    //
    private String xyname;
    //
    private String zname1;
    // 总金额
    private BigDecimal zdbje;
    private BigDecimal zfhje;
    private BigDecimal zljje;
    //
    private BigDecimal zfhwh;
    // 余额
    private BigDecimal zfhwhje ;
    private BigDecimal zhkje;
    private BigDecimal ztzje;
    // 信用占用金额
    private BigDecimal zzyje;
    private String zkyzt;
    private String ztname;
    private Date zxyzqsr;
    private Date zxyzdqi;
    private String zyhlsh;
    private String purpose;
    private Date changed_at;
    private String urid;
    private String dburid;
    private String dyurid;
    private Date zgxrq;


    //以下是crm中的数据，用于计算差额
    //CRM总金额
    private BigDecimal new_totalamount;
    //CRM已用金额
    private BigDecimal new_usedamount;
    //CRM余额
    private  BigDecimal new_amount;
    //CRM发货未还金额
    private BigDecimal new_unpaidAmount;
}
